package battle.cmd
{
	import battle.BaseObject;
	import battle.Character;
	import battle.cmd.IExecutor;
	
	import flash.utils.getQualifiedClassName;
	
	import mx.utils.object_proxy;
	
	public class AbstractCharacterExecutor implements IExecutor
	{
		public function CharacterExecutor()
		{
		}
		
		public function execute(context:*, target:BaseObject):void
		{
			if( !target is Character )
			{
				throw new Error( "must be execute on character Object!" );
			}
			
		}
		
		public function undo(context:*, target:BaseObject):void
		{
			if( !target is Character )
			{
				throw new Error( "must be execute on character Object!" );
			}
		}
	}
}